﻿using System;
using System.Threading.Tasks;

namespace IoTSignalR
{
    //策略模式,通用管道协议
    public interface IGeneralPipeProtocol
    {
        Task SendGroupMsg(string clientId, string msg);
        Task SendMsg(string clientId, string msg);
        event EventHandler<ProtocolNotifyEventArg> ReceiveMessagesAfter;
        event EventHandler<ProtocolNotifyEventArg> SendMessagesAfter;
        event EventHandler<ProtocolNotifyEventArg> OnConnectedAfter;
        event EventHandler<ProtocolNotifyEventArg> OnDisconnectedAfter;
    }
}